package File;

import java.io.File;

public class FileDemo {
    public static void main(String[] args) {
        File file = new File("./Demo.txt");
        String name = file.getName();
        System.out.println("name:"+name);

        long len = file.length();
        System.out.println("lenght:"+len);

        boolean i= file.isHidden();
        boolean r= file.canRead();
        boolean w= file.canWrite();
        System.out.println(i);
        System.out.println(r);
        System.out.println(w);

    }
}
